# teste_cenario.py

import pygame,os,sys
from pygame.locals import *

pygame.init()

screen = pygame.display.set_mode((600,600))
pygame.display.set_caption('Testa Cenario3')

class Cenario:
    def __init__(self,nome_cenario):
        self.nome = nome_cenario       

        self.imagem_bloco3 = pygame.image.load('Imagens' + os.sep + 'bloco3.png').convert_alpha()

        self.background = pygame.image.load('Imagens' + os.sep + 'background_fase.jpg').convert()
        
        self.mapa_cenario3 = {self.imagem_bloco3:[(0,0),(30,0),(60,0),(90,0),(120,0),(150,0),(180,0),(210,0),(240,0),(270,0),(300,0),(330,0),(360,0),(390,0),(420,0),(450,0),(480,0),(510,0),(540,0),(570,0),
                                             (0,40),(570,40),
                                             (0,80),(570,80),
                                             (0,120),(570,120),
                                             (0,150),(570,150),

                                             (280,160),
                                             (250,200),(280,200),(310,200),
                                             (150,240),(410,240),
                                             (160,280),(190,280),(380,280),(410,280),
                                             (160,310),(410,310),
                                             (250,340,),(280,340),(310,340),
                                             (280,380),

                                             (0,380),(570,380),
                                             (0,410),(570,410),
                                             (0,440),(570,440),
                                             (0,470),(570,470),
                                             (0,500),(570,500),
                                             (0,530),(570,530),
                                             (0,560),(30,560),(60,560),(90,560),(120,560),(150,560),(180,560),(210,560),(240,560),(270,560),(300,560),(330,560),(360,560),(390,560),(420,560),(450,560),(480,560),(510,560),(540,560),(570,560)]}

    def __str__(self):
        return self.nome


cenario3 = Cenario('Cenario fase3')

while True:
    for e in pygame.event.get():   # para a cobra se mexer
        if e.type == QUIT:
            sys.exit(0)

    screen.blit(cenario3.background,(0,0))

    j = 0
    for pos in cenario3.mapa_cenario3.values()[j]:
        screen.blit(cenario3.mapa_cenario3.keys()[0],pos)
    
    pygame.display.update()

